function fillSelect (status, statusText, responseText, responseXML) {
    var xml = responseXML;
    var ELEMENT_NODE = 1;
    var root = xml.getElementsByTagName('DATA_LIST').item(0);
    clearSelect(this._div);
    if (root!=null) {
        for (var iNode = 0; iNode < root.childNodes.length; iNode++) {
            var node = root.childNodes.item(iNode);
            if (node.nodeType == ELEMENT_NODE) {
                var name = node.getAttribute('name').toString();
                var value = node.getAttribute('value').toString();
                addSelectOption(this._div, name, value);
            }
        }
    }
    try {
        this._func();
    } catch(e) {
    }
}

function loadSelectAJX(service, serviceMethod, id, key, filter, module, func) {
    var asynchronousSelect = new Asynchronous(id, func);
    asynchronousSelect.complete = fillSelect;
    asynchronousSelect.call("ajx.ajx?method=selectLoader&service="+service+"&serviceMethod="+serviceMethod+"&module="+module+"&key="+key+"&filter="+filter);
}
